{include file="layout/top"/}
<form action="" method="post" class="form_single">
    <div class="box">
      <div class="box-body">
        <div class="row">
          <div class="col-md-6">
            <div class="form-group">
              <label>基本薪资</label>
              <span>（基本薪资）</span>
              <input class="form-control" name="price1" placeholder="请输入基本薪资" type="text" value="{$info.price1}">
            </div>
          </div>

          <div class="col-md-6">
            <div class="form-group">
              <label>全勤</label>
              <span>（全勤）</span>
              <input class="form-control" name="price2" placeholder="请输入全勤" type="text" value="{$info.price2}">
            </div>
          </div>
           <div class="col-md-6">
            <div class="form-group">
              <label>补贴</label>
              <span>（补贴）</span>
              <input class="form-control" name="price3" placeholder="请输入补贴" type="text" value="{$info.price3}">
            </div>
          </div>

          <div class="col-md-6">
            <div class="form-group">
              <label>绩效</label>
              <span>（绩效）</span>
              <input class="form-control" name="price4" placeholder="请输入绩效" type="text" value="{$info.price4}">
            </div>
          </div>

          <div class="col-md-6">
            <div class="form-group">
              <label>其它</label>
              <span>（其它）</span>
              <input class="form-control" name="price4" placeholder="请输入绩效" type="text" value="{$info.price4}">
            </div>
          </div>

           <div class="col-md-4">
            <div class="form-group">
              <label>调薪时间</label>
              <span class="">（调薪时间）</span>
                <input type="text" name="change_time" readonly="readonly" style="cursor:pointer"  class="form-control test-item" placeholder="请选择时间" value="{$info.change_time}">
            </div>
          </div>

          <div class="col-md-6">
            <div class="form-group">
              <label>备注</label>
              <span>（调薪备注）</span>
              <textarea class="form-control" name="remark" rows="3" placeholder="请输入备注">{$info.remark}</textarea>
            </div>
          </div>

        </div>
      </div>
      <div class="box-footer">
         <input type="hidden" class="form-control staff_id" name="staff_id" value="{$staff_id}"/>
         <input type="hidden" class="form-control" name="id" value="{$info.id}"/>
        <button  type="button" style="color:#fff;background:#3c8dbc;" class="btn ladda-button ajax-post-tj" data-style="slide-up" target-form="form_single" url="{:url()}">
      <span class="ladda-label"><i class="fa fa-send"></i> 确 定</span>
    </button>

<a class="btn" style="color:#fff;background:#3c8dbc;" onclick="javascript:history.back(-1);return false;"><i class="fa fa-history"></i> 返 回</a>
      </div>
    </div>
    <script src="__STATIC__/module/admin/laydate/laydate.js"></script>
    <script src="__STATIC__/module/admin/laydate/layer.js"></script>
    <script type="text/javascript">
      // 时间插件
    $('.ajax-post-tj').click(function(){
      var target=$(this).attr('url');
      var staff_id=$('.staff_id').val();
      var query = $('.form-control').serialize();
      $.post(target,query).success(function(data){ 
        layer.msg(data.msg);
        setTimeout(function(){
          location.href='/admin/staff/staffaddpricelist/id/'+staff_id+'.html'
        },2000)
      });
    })
    lay('.test-item').each(function(){
      laydate.render({
        elem: this
        ,trigger: 'click'
      });
   });
    </script>
</form>
